import java.io.BufferedReader;
import java.io.IOException;
import java.io.*;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.*;
import java.util.Locale;
import java.lang.*;



public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Hello World");
		
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        System.out.print("Please enter text : ");
        String username = null;
        String surrogator_name = null;
        try {
            username = reader.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        } 
        System.out.println("You entered : " + username);
 
        
        // ===== In Java 5, Java.util,Scanner is used for this purpose. 
        Scanner in = new Scanner(System.in);
        System.out.print("Please enter surrogator : ");
        surrogator_name = in.nextLine();       
        System.out.println("You entered surogator name: " + surrogator_name);
        
        String result =surrogator_name+" falls in love with "+username; 
        System.out.println(result);
        
 
        /*
        // ====== Java 6
        Console console = System.console();
        username = console.readLine("Please enter user name : ");   
        System.out.println("You entered : " + username);
         */
		
	}

}
